package cn.psvmc.cxzapi.mapper.order;

import cn.psvmc.cxzapi.config.mybatisplus.mapper.MyBaseMapper;
import cn.psvmc.cxzapi.model.common.OrderEntity;
import cn.psvmc.cxzapi.model.goods.TGoods;
import cn.psvmc.cxzapi.model.order.TOrderRecord;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.Map;

/**
 * 订单申请记录表 Mapper 接口
 * @Author auto
 * @Date 2024-12-18
 */
public interface TOrderRecordMapper extends MyBaseMapper<TOrderRecord> {

    //订单申请记录列表
    IPage<Map> listRecord(Page<TGoods> queryPage, @Param("entity") OrderEntity entity);

    //订单申请记录详情
    TOrderRecord findById(@Param("orid") Integer orid);

    //订单取消
    void orderCancel(@Param("orderCode") String orderCode, @Param("comm") String comm);
}
